function cat() {
    this.eat = function () {
        return 5;
    }
}

cat.prototype = new animal();
//cat.prototype.eat = function () {
//    return 5;
//}